package com.hk.commons.vo;


import com.hk.commons.enm.MqEventType;
import com.hk.commons.entity.sys.SysUser;

import java.math.BigDecimal;
import java.util.UUID;

/**
 * Created by Antinomy on 16/10/25.
 */
public class MqCenterMsg {

    public static String CENTER_QUEUE_NAME= "activity_center";

    private String event = MqEventType.ACTIVITY_EVENT.toString();

    private String dispatchEvent;

    private String uuid;

    private Long userId;

    private Long orderId;

    private Long productId;

    private BigDecimal orderAmount;


    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getDispatchEvent() {
        return dispatchEvent;
    }

    public void setDispatchEvent(String dispatchEvent) {
        this.dispatchEvent = dispatchEvent;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public static MqCenterMsg getMqCenterMsg(Long userId, String dispatchEvent) {
        MqCenterMsg msg = new MqCenterMsg();
        msg.setDispatchEvent(dispatchEvent);
        msg.setUserId(userId);
        msg.setUuid(UUID.randomUUID().toString());
        return msg;
    }
}
